<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redis;

class day0927controller extends Controller
{
    public function login(Request $request){
//        $data['name']=$request->input("name");
//        $data['pwd']=$request->input("pwd");
    }
//    存储rides
    public function aa(){
        Redis::connection("goods")->set("text","缓存设置");
        $a=Redis::connection("goods")->get("text");
        var_dump($a);
    }
//    public function aa(){
//        Redis::connection("goods")->rpush("text","这是一条数据");
//    }
}










